Skip to content

style: lint and format code#7319

Merged
benelan merged 7 commits intomainfrom
benelan/run-prettier
Jul 14, 2023
Merged

style: lint and format code#7319
benelan merged 7 commits intomainfrom
benelan/run-prettier

Conversation

@benelan
Copy link
Copy Markdown
Contributor

@benelan benelan commented Jul 14, 2023

Related Issue: #7318

Summary

Lint and format the code. Prettier will now add trailing commas when possible, which is the default in 3x.

I know already brought up disabling some jsdoc rules in the past, but I think we can at least disable the jsdoc/require-param-type one. We are using TypeScript so defining the types twice seems redundant and likely to get out of sync when things change.

@benelan benelan requested review from a team, driskull, geospatialem and jcfranco as code owners July 14, 2023 04:53
@github-actions github-actions Bot added the chore Issues with changes that don't modify src or test files. label Jul 14, 2023

.text {
@apply mt-px mb-0;
margin-inline-start: theme("spacing.px");
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eriklharper can you confirm that eslint or prettier removed the correct one of these duplicate css properties?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I blamed it and it's from this commit: 4169f30

The one not being used was removed so I assume that's correct, but just wanted to double check before its gone forever.

Copy link
Copy Markdown
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

benelan added 5 commits July 14, 2023 15:48
* benelan/add-editorconfig:
  chore: configure prettier to add trailing commas
  chore: release next
  fix(input-date-picker): provides placeholder text context for AT users (#7320)
  chore: release next
  fix(dropdown-item): provides accessible label when href is not parsed (#7316)
  chore: add editorconfig
@benelan benelan merged commit 7222dd7 into main Jul 14, 2023
@benelan benelan deleted the benelan/run-prettier branch July 14, 2023 23:16
@github-actions github-actions Bot added this to the Design Sprint milestone Jul 14, 2023
benelan added a commit that referenced this pull request Jul 17, 2023
…script (#7326)

**Related Issue:** #7319

## Summary

Disables the
[`jsdoc/require-param-type`](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param-type.md)
eslint rule since we use TypeScript for that.
benelan added a commit that referenced this pull request Jul 18, 2023
**Related Issue:** #7318

## Summary

Lint and format the code. Prettier will now add trailing commas when
possible, which is the default in 3x.

I know already brought up disabling some jsdoc rules in the past, but I
think we can at least disable the ` jsdoc/require-param-type` one. We
are using TypeScript so defining the types twice seems redundant and
likely to get out of sync when things change.
benelan added a commit that referenced this pull request Jul 18, 2023
…amping-ar-numberingsystem-bug

* origin/main:
  chore(eslint): disable jsdoc/require-param-type rule in favor of typescript (#7326)
  style: lint and format code (#7319)
  chore: add editorconfig (#7318)
  chore: release next
  fix(input-date-picker): provides placeholder text context for AT users (#7320)
  chore: release next
  fix(dropdown-item): provides accessible label when href is not parsed (#7316)
  ci: create more specific codeowners to limit unnecessary notifications (#7313)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Issues with changes that don't modify src or test files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants